package cn.snmp.mutual.uk.stack;

public class TrapPduv2 extends Pdu {
    private static final String version_id = "@(#)$Id: TrapPduv2.java,v 3.11 2006/03/23 14:54:10 birgit Exp $ Copyright Westhawk Ltd";

    public TrapPduv2(final SnmpContextBasisFace con) {
        super(con);
        this.setMsgType((byte) (-89));
        if (con.getVersion() == 0) {
            throw new IllegalArgumentException("A TrapPduv2 can only be sent with an SNMPv2c or SNMPv3 context. NOT with an SNMPv1 context!");
        }
    }

    @Override
    void transmit() {
        this.transmit(false);
    }

    @Override
    public String toString() {
        return super.toString(true);
    }

    @Override
    protected void new_value(final int n, final Varbind res) {
    }

    @Override
    protected void tell_them() {
    }

    @Override
    protected boolean isExpectingResponse() {
        return false;
    }
}
